package org.xg.study.pd.test;

import org.junit.Test;
import org.xg.study.pd.LoginSSODecorator;

/**
 * @author CMG
 * @version 1.0
 * @description
 * @cLassName ApiTest9_01
 * @date 2021/9/15 11:10
 **/
public class ApiTest9_01 {
    @Test
    public void test_loginSSODecorator() {
        LoginSSODecorator loginSSODecorator = new LoginSSODecorator();
        String request = "1successhuahua";
        boolean success = loginSSODecorator.preHandle(request, "ewcdqwt401liuiu", "t");
        System.out.println("登陆校验：" + request + (success ? "放行" : "拦截"));
    }
}
